# 配置
HOSTNAME = "127.0.0.1"
PORT = "3306"
USERNAME = "root"
PASSWORD = "root"
DATABASE = "basedb"
DB_URI = f"mysql+pymysql://{USERNAME}:{PASSWORD}@{HOSTNAME}:{PORT}/{DATABASE}?charset=utf8mb4"

# mysql连接
SQLALCHEMY_DATABASE_URI = DB_URI


# 邮件
MAIL_SERVER = 'smtp.163.com'
MAIL_PORT = 25
MAIL_USE_TLS = True
MAIL_USERNAME = 'xx@163.com'
MAIL_PASSWORD = 'xx'
MAIL_DEFAULT_SENDER = "xx@163.com"

# redis
REDIS_URL = 'redis://localhost:6379/0'  # Redis 连接信息
